//
//  AYSSpecialMainViewCell.m
//  AiYingShiProject
//
//  Created by lanou on 15/10/27.
//  Copyright (c) 2015年 李晓理. All rights reserved.
//

#import "AYSSpecialMainViewCell.h"
#import <UIImageView+WebCache.h>
@implementation AYSSpecialMainViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self)
    {
        _mainImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH / 2 - 20 , (SCREEN_HEIGHT - 100) / 2 - 70)];
        [self.contentView addSubview:_mainImageView];
        
        _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, (SCREEN_HEIGHT - 100) / 2 - 68, SCREEN_WIDTH / 2 - 20, 40)];
        _titleLabel.font = [UIFont systemFontOfSize:15];
        _titleLabel.textColor = [UIColor whiteColor];
        _titleLabel.numberOfLines = 0;
        _titleLabel.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:_titleLabel];
        
       
    }
    return self;
}

- (void)setSpecialModel:(AYSSpecialMainModel *)specialModel
{
    _specialModel = specialModel;
    [_mainImageView sd_setImageWithURL:[NSURL URLWithString:specialModel.vthumburl]];
    _titleLabel.text = specialModel.programname;
}
@end
